package com.itnan.user.service;

import com.itnan.user.dao.CustomerDao;
import com.itnan.user.domain.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by tangjian on 27/4/14.
 */
@Component
@Transactional(readOnly = false)
public class CustomerService {

    @Autowired
    private CustomerDao customerDao;

    public void save(Customer customer) {
        customerDao.save(customer);
    }
}
